package info.qingshui.browser.hk.setting;

/**
 * 
 * 更新配置的信息
 *
 */
public class ConfigServer implements  java.io.Serializable{
	private static final long serialVersionUID = -3768790637716157458L;
	
	private String host ;//能使用的服务器IP或者host
	private String port;//更新该文件的服务器端口
	
	public ConfigServer(String host, String port) {
		super();
		this.host = host;
		this.port = port;
	}
	
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	}
	public String getConfigUrl(String fileName) {
		return "http://" + this.host + ":" + this.port + "/" + Setting.SETTING_PATH + "/" + fileName;
	}
	
	public String toString() {
		return "host=" + this.host + ";port=" + port;
	}
}
